package com.xique.door.bean.request.visitor;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author shd
 * @create 2022/2/26 10:30
 */
@Data
public class VisitorEditRequest {

    @NotNull(message = "访客信息不能为空")
    private Long id;

    private String visitorName;

    private String gender;

    private String faceKey;

    private String faceUrl;

    @NotNull(message = "来访开始时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @NotNull(message = "来访结束时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    private String address;

    private String remark;

    private Integer status;
}
